import request from '@/utils/request'

// 查询配件明细列表
export function listPeijianmx(query) {
  return request({
    url: '/carrepair/peijianmx/list',
    method: 'get',
    params: query
  })
}

// 查询配件明细列表
export function listPeijianmxNoPage(query) {
  return request({
    url: '/carrepair/peijianmx/listNoPage',
    method: 'get',
    params: query
  })
}

// 查询配件明细详细
export function getPeijianmx(id) {
  return request({
    url: '/carrepair/peijianmx/' + id,
    method: 'get'
  })
}

// 新增配件明细
export function addPeijianmx(data) {
  return request({
    url: '/carrepair/peijianmx',
    method: 'post',
    data: data
  })
}

// 修改配件明细
export function updatePeijianmx(data) {
  return request({
    url: '/carrepair/peijianmx',
    method: 'put',
    data: data
  })
}

// 删除配件明细
export function delPeijianmx(id) {
  return request({
    url: '/carrepair/peijianmx/' + id,
    method: 'delete'
  })
}
